{{!connect "widget/feed/doctypes_menu.js"}}

{{?widget.menu}}
<!-- покажем им разделы -->
<div class="widget wg-selector wg-doctypes-menu">
	<h3 class="header-">{{widget.title}}</h3>
	<form action="{{widget.action_filter | safe}}">
		<ul class="list-">
			{{!for widget.menu do=@:item}}
			{{:item *is_total}}
			<li class="root-"><input type="checkbox" id="directory{{@:id}}" name="{{widget.rq_tdi}}[]" value="{{*section}}" {{?*checked}}checked="checked"{{/?}}/><label id="l_directory{{@:id}}" for="directory{{@:id}}">Все</label> {{*count}}</li>
			{{/:item}}
			{{:item *checked}}
			<li><input type="checkbox" id="directory{{@:id}}" checked="checked" name="{{widget.rq_tdi}}[]" value="{{*section}}" class="directory-" />
			<label id="l_directory{{@:id}}" for="directory{{@:id}}">{{*tdi.title}}</label> {{*count}}</li>
			{{/:item}}
			{{:item}}
			<li><input type="checkbox" id="directory{{@:id}}" name="{{widget.rq_tdi}}[]" value="{{*section}}" class="directory-" /><label  id="l_directory{{@:id}}" for="directory{{@:id}}">{{*tdi.title}}</label> {{*count}}</li>
			{{/:item}}
		</ul>
		<input type="image" src="{{images}}button-show.gif" alt="Показать" class="submit-" />
	</form>
</div>
{{?:}}
<!-- когда в ленте нет записей покажем это -->
{{/?}}

{{:id}}{{*section | sprintf '%02d'}}{{/:id}}
